//
//  ZSGMOneCell.m
//  ZhuShou
//
//  Created by Dejun Liu on 15/11/2.
//  Copyright © 2015年 jw. All rights reserved.
//

#import "ZSGMOneCell.h"

@implementation ZSGMOneCell

- (instancetype)initWithReuseIdentifier:(NSString *)identifier
{
    self = [super init];
    if (self) {
        self.reuseIdentifier = identifier;
        
        self.contentView = [[UIView alloc] initWithFrame:self.bounds];
        self.contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
        self.contentView.clipsToBounds = YES;
        
        
        self.df_imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 3, 40, 40)];
        self.df_imageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
        [self.contentView addSubview:self.df_imageView];
        
        self.df_titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.width, 20)];
        self.df_titleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleTopMargin;
        self.df_titleLabel.bottom = self.contentView.height;
        self.df_titleLabel.textAlignment = NSTextAlignmentCenter;
        self.df_titleLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:self.df_titleLabel];
    }
    return self;
}

@end
